
//初始化标签选择
$(function(){
	var typeid = $('#blogtype_id').val();
	if(typeid==""){
		$('.blogtype-0').addClass("active");
		return;
	}
	
	$('.blogtype-'+typeid).addClass("active");
});

//导航显示
$(function(){
	  $(window).bind("scroll", function(event){
	      var fold = $(window).height() + $(window).scrollTop();
	      // console.log("$(window).height()",$(window).height());
	      // console.log("$(window).scrollTop()",$(window).scrollTop());
	      // console.log("$(this).offset().top",$("#about-content").offset().top);
			//console.log(fold);
	      if( fold >= 200+$(window).height()){
	        $("#topmenu").fadeIn("slow");
	      }else{
	         $("#topmenu").fadeOut("slow");
	      }
	  });
});